﻿#ifndef UPLOADFILE_H
#define UPLOADFILE_H

#include <QWidget>
#include <dbHelper.h>
#include <QTableWidgetItem>
#include <QCheckBox>
#include "xlsxdocument.h"
#include <QFileDialog>
#include "tcts.h"
#include <dbHelper.h>
#include <QHBoxLayout>
#include <QDebug>
#include <QStyleFactory>
#include <QDesktopWidget>
#include "dialogFileManager.h"
#include <QListWidgetItem>
#include <QItemDelegate>

namespace Ui {
class UploadFile;
}

class UploadFile : public QWidget
{
    Q_OBJECT

public:
    explicit UploadFile(QWidget *parent = nullptr);
    ~UploadFile();
    Ui::UploadFile *ui;

signals:
    void changeTodetanalyWindow();

private slots:
    void on_comboBox_currentTextChanged(const QString &arg1);

    void on_comboBox_2_currentTextChanged(const QString &arg1);

    void on_SaveBtn_2_clicked();

    void on_pushButton_clicked();

    void on_SaveBtn_clicked();
private:
    void showEvent(QShowEvent *event) override;
private:

    void kzyqname();
    void jyfxyname();
    void tab();
    tcts *tctsui;
    QCheckBox *getCheckBox(QTableWidget *table, int row, int column);
    QCheckBox *setCheckBox(QTableWidget *table, int row, int column, bool checkd);
    QList<int> rowfl;
    bool filefl=false;
    QList<QCheckBox *> allCheckBoxsval;
    int chefl=0;
};

#endif // UPLOADFILE_H
